/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2019-02-13 Time: 23:07
 */

import {requestDispatchOrder,requestCompleteOrder,requestDeleteOrder,requestContinueOrder} from "../../request/RepairOrderOperationRequest";
import {Action} from "../../configuration/ActionCreator";

//派工
export const DispatchOrder = 'DispatchOrder';
export const dispatchOrder = (str) => {
    let action = Action(DispatchOrder);
    return dispatch => dispatch(requestDispatchOrder(action, str ))
};

//完成
export const CompleteOrder = 'CompleteOrder';
export const completeOrder = (str) => {
    let action = Action(CompleteOrder);
    return dispatch => dispatch(requestCompleteOrder(action, str ))
};

//删除
export const DeleteOrder = 'DeleteOrder';
export const deleteOrder = (str) => {
    let action = Action(DeleteOrder);
    return dispatch => dispatch(requestDeleteOrder(action, str ))
};

//继续处理
export const ContinueOrder = 'ContinueOrder';
export const continueOrder = (str) => {
    let action = Action(ContinueOrder);
    return dispatch => dispatch(requestContinueOrder(action, str ))
};




